
import time
c =0
password = "root"
useer = "admin"

while True:
    s1 =input("请您输入用户名：")
    s2 =input("请输入密码：")
    if s1 == password or s2 == useer:
        print("登录成功！")
        break
    else:
        c += 1
        print("登录错误")
        if c == 3:
            time.sleep(3.0)